#ifndef VERIFYCODEWIDGET_H
#define VERIFYCODEWIDGET_H
#include <QDateTime>
#include <QWidget>
#include <QPainter>
#include <QRandomGenerator>

class VerifyCodeWidget : public QWidget {
    Q_OBJECT

public:
    explicit VerifyCodeWidget(QWidget *parent = nullptr);

    void setVerifyCode(const QString &code);

protected:
    void paintEvent(QPaintEvent *event) override;

private:
    QString verifyCode;
    QRandomGenerator randomGenerator;
};

#endif // VERIFYCODEWIDGET_H
